/**************************
* @Summary
* @Author 20009200303 赵传博
* @Date 2022/4/27
*****************************/

#ifndef EX4_EXPR_H
#define EX4_EXPR_H
#include "Parser.h"

class Expr {
private:
    ExprNode* root;
public:
    ExprNode *getRoot() const;
    Expr(const char* str);

    double calculateVal();


    void print_mid();
    void print_postfix();
    void print_prefix();

};


#endif //EX4_EXPR_H
